#ifndef _IMAGE_PUSH_PUSHWITHRTMP_
#define _IMAGE_PUSH_PUSHWITHRTMP_

#include "../../../function.h"

namespace sp::Image::Push{
void register_pushWithRtmp();

/* 
    通过RTP_UDP向浏览器推流
*/
class pushWithRtmp: public Function{
public:
    pushWithRtmp(std::vector<std::string> v);
    pushWithRtmp(int cropWay);
    pushWithRtmp();
    virtual ~pushWithRtmp();
    static void registe();
    static Function* createObject(std::vector<std::string> params);
    static Function* createObject2();
    virtual void start();
    virtual bool waitForResource();
    virtual void process(std::vector<std::vector<Data*>>& data_input, std::vector<Data*>& data_output);
    virtual bool releaseResource();
    virtual void finish();
    virtual void copy(Function* other);
};

};

#endif